<!--
 * @Author: Zhouxin 2890091630@qq.com
 * @Date: 2024-08-27 00:23:09
 * @LastEditors: Zhouxin 2890091630@qq.com
 * @LastEditTime: 2024-08-27 00:33:30
 * @FilePath: \2024-8-22(26)-day13\实践 instanceof 判断 Number String Boolean Array Function Object 的结果.HTML
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>实践 instanceof 判断 Number String Boolean Array Function Object 的结果</title>
</head>
<body>
    <script>
        var num = new Number(6);
        console.log(num instanceof Number);
        console.log(num instanceof Object);

        var S = new String("11");
        console.log(S instanceof String);
        console.log(S instanceof Object);

        var B = new Boolean(true);
        console.log(B instanceof Boolean);
        console.log(B instanceof Object);

        var A = new Array();
        A=[];
        console.log(A instanceof Array);
        console.log(A instanceof Object);

        var f = function(){};
        console.log(f instanceof Function);
        console.log(f instanceof Object);

        var O = new Object();
        O = {};
        console.log(O instanceof Object);
    </script>
</body>
</html>